Blog

HTTP/HTTPS in ASP.Net

I've been asked many times how can you force a user to use HTTPS over HTTP without having to setup a lot of IIS settings.

As long as your site has an SSL certificate installed and is listening on HTTPS. You can use this code in your Page_Load routine.

if(Request.ServerVariables["HTTPS"] == "off")
Response.Redirect("https://"+Request.ServerVariables["HTTP_HOST"]+Request.ServerVariables["PATH_INFO"]);

This will check if you are secure, if it's off, redirect the client to the same page and query information, only on HTTPS protocol.

TVMap RC2 Released

TVMap RC2 was released, I have included it on the products page.
TVMap

There is a video demonstrating it in action in a FPS setting. It's really come a long way and fully supports the HL .MAP file format. The source code is included so you can see it's inner workings and develop custom integrations with your particular project.

Hope you all enjoy it. I use it now all the time.

Finally

I finally got around to getting all my sites systems in place. I have to import my content, but that's easy. What's really great is that the forums will act like a wiki while the main site can handle my shop and projects while giving me the ability to develop software, not maintain web code.

Hooray for Drupal!

Syndicate content